package com.xiake.zojcodesandbox.enums;

public enum ExecuteStatusEnum {
    SUCCESS(1, "成功"),
    COMPILE_ERROR(2, "编译错误"),
    CODE_SANDBOX_ERROR(3, "代码沙箱错误"),
    USER_CODE_ERROR(4, "用户代码错误"),
    UNKNOWN_ERROR(5, "未知错误");

    private final int status;
    private final String message;

    ExecuteStatusEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }
    public String getMessage() {
        return message;
    }

}
